﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace PlaneWar.Helper
{
    public class WinMain_helper : INotifyPropertyChanged
    {
        //分数（打中敌机累加）
        private int fraction;
        public int Fraction
        {
            get { return fraction; }
            set
            {
                fraction = value; if (PropertyChanged != null)
                {
                    PropertyChanged(this, new PropertyChangedEventArgs("Fraction"));
                }
            }
        }

        //剩余防护层数量
        private int protect;
        public int Protect
        {
            get { return protect; }
            set
            {
                protect = value; if (PropertyChanged != null)
                {
                    PropertyChanged(this, new PropertyChangedEventArgs("Protect"));
                }
            }
        }


        public event PropertyChangedEventHandler PropertyChanged;
    }
}
